package main.java.com.example.demo.service;

import com.example.demo.mapper.OrderMapper;
import com.example.demo.pojo.Order;
import com.example.demo.vo.OrderVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description:
 * @Param:
 * @Author:
 * @Date:
 */
@Service
public class OrderService {

    @Autowired
    private OrderMapper orderMapper;

    public List<Order> findOrder(Order order) {
        return orderMapper.findOrder(order);
    }

    public void insertOrder(Order order) {
        orderMapper.insertOrder(order);

    }

    public List<OrderVo> findAllOrder() {
        return orderMapper.findAllOrder();
    }
}
